import React, { Component } from 'react'
import styles from './index.scss'

export default class ButtonComponent extends Component {
  constructor(props) {
      super(props);
      this.state = {

      };
      this.handleClick = this.handleClick.bind(this);
  }
  handleClick(){

    this.props.buttonClick();

  }
  render() {
      let val = this.props.txt;
      return(
          <input type='button' className={styles.oSearchBtn} value={val} onClick={this.handleClick} />
      )
  }
}
